import request from "/@/utils/request"

//一键通知成绩不合格人员
export function sendNotPassPersonsMsg(obj?: Object) {
  return request({
    url: '/train/ksglTranscript/sendNotPassPersonsMsg',
    method: 'post',
    data: obj
  })
}
// 一键通知缺考人员
export function sendUnreferencedPersonsMsg(obj?: Object) {
  return request({
    url: '/train/ksglTranscript/sendUnreferencedPersonsMsg',
    method: 'post',
    data: obj
  })
}
// 发送学习资料
export function addDataListByExam(obj?: Object) {
  return request({
    url: '/train/ksglTranscript/addDataListByExam',
    method: 'post',
    data: obj
  })
}
//发送学习资料列表
export function fetchList1(query?: Object) {
  return request({
    url: '/train/kszlData/getDataList',
    method: 'get',
    params: query
  })
}
// 下发给考试异常人员通知
export function sendAbnormalPersonsMsg(obj?: Object) {
  return request({
    url: '/train/ksglTranscript/sendAbnormalPersonsMsg',
    method: 'post',
    data: obj
  })
}
// 人工判卷题提交
export function submitData(obj?: Object) {
  return request({
    url: '/train/ksglManualData/submitData',
    method: 'post',
    data: obj
  })
}
// 人工判卷题详情
export function getManualData(query?: Object) {
  return request({
    url: '/train/ksglManualData/getList',
    method: 'get',
    params: query
  })
}
// 考试人员成绩名单
export function getNameList(query?: Object) {
  return request({
    url: '/train/ksglTranscript/getNameList',
    method: 'get',
    params: query
  })
}
// 考试详情
export function getExamList(query?: Object) {
  return request({
    url: '/train/ksglTranscript/getExamListById',
    method: 'get',
    params: query
  })
}
// 成绩不合格人员
export function notPassPersons(query?: Object) {
  return request({
    url: '/train/ksglTranscript/notPassPersons',
    method: 'get',
    params: query
  })
}
// 未参考人员
export function unreferencedPersons(query?: Object) {
  return request({
    url: '/train/ksglTranscript/unreferencedPersons',
    method: 'get',
    params: query
  })
}
//正常得分情况
export function abnormalPersons(query?: Object) {
  return request({
    url: '/train/ksglTranscript/abnormalPersons',
    method: 'get',
    params: query
  })
}
//考试异常人员
export function normalPersons(query?: Object) {
  return request({
    url: '/train/ksglTranscript/normalPersons',
    method: 'get',
    params: query
  })
}
export function fetchList(query?: Object) {
  return request({
    url: '/train/ksglTranscript/getTranscriptListById',
    method: 'get',
    params: query
  })
}

export function addObj(obj?: Object) {
  return request({
    url: '/train/ksglTranscript',
    method: 'post',
    data: obj
  })
}

export function getObj(id?: string) {
  return request({
    url: '/train/ksglTranscript/' + id,
    method: 'get'
  })
}

export function delObjs(ids?: Object) {
  return request({
    url: '/train/ksglTranscript',
    method: 'delete',
    data: ids
  })
}

export function putObj(obj?: Object) {
  return request({
    url: '/train/ksglTranscript',
    method: 'put',
    data: obj
  })
}

